import { createApp } from "vue";
import ElementPlus from 'element-plus';
import App from "./App.vue";
import { router } from "./router";
import store from "./store";
import service from './api'
import VueAxios from 'vue-axios'
import 'element-plus/lib/theme-chalk/index.css';
import { allPermissionDirective, anyPermissionDirective } from './directive/permission'
import tableAutoHeight from './directive/tableAutoHeight'

const app = createApp(App)
app.directive('allPermission', allPermissionDirective)
app.directive('anyPermission', anyPermissionDirective)
app.directive('tableAutoHeight', tableAutoHeight)
app.use(ElementPlus)
app.use(VueAxios, service)
app.use(store)
app.use(router)
app.mount('#app')
export default app